import request from '@/plugins/request';
//护栏类型
export function railType(data) {
    return request({
        url:'/api/sysProject/list',
        method: 'get',
        params:{...data}
    });
}

//护栏列表
export function railList(data) {
    return request({
        url:'/api/web/rail/page',
        method: 'get',
        params:{...data}
    });
}
//添加护栏
export function railAdd(data) {
    return request({
        url:'/api/web/rail/add',
        method: 'post',
        data
    });
}
//修改护栏
export function railUpdate(data) {
    return request({
        url:'/api/sysRail/update',
        method: 'post',
        data
    });
}

//删除护栏
export function railDel(data) {
    return request({
        url:'/api/web/rail/delete',
        method: 'DELETE',
        params:{...data}
    });
}
//查看护栏详情
export function railDetail(data) {
    return request({
        url:'/api/v1/car/info',
        method: 'get',
        params:{...data}
    });
}


//删除设备
export function deviceDel(data) {
    return request({
        url:'/api/web/device/delete',
        method: 'DELETE',
        params:{...data}
    });
}
//设备列表
export function deviceList(data) {
    return request({
        url:'/api/web/device/page',
        method: 'get',
        params:{...data}
    });
}

export function deviceType(data) {
    return request({
        url:'/api/web/dict/getDeviceModel',
        method: 'get',
        params:{...data}
    });
}

//查看设备详情
export function deviceDetail(data) {
    return request({
        url:'/api/sysDevice/findById',
        method: 'get',
        params:{...data}
    });
}

//护栏类型
export function alarmList(data) {
    return request({
        url:'/api/web/deviceAlarm/page',
        method: 'get',
        params:{...data}
    });
}
